package com.vhall.component.entity.chat.vo;

import com.vhall.component.framework.common.annotation.ParamName;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * QuickRepliesUpdateVO-更新快捷回复参数
 *
 * @author xing.wang
 * @date 2022/9/6
 */
@Data
public class QuickRepliesUpdateVO implements Serializable {
    /**
     * 快捷回复主键ID
     */
    @NotNull(message = "更新时必须传递快捷回复ID")
    @ParamName("replies_id")
    private Integer repliesId;
    /**
     * 快捷回复内容
     */
    @NotBlank(message = "快捷回复内容不能为空")
    @Size(min = 1, max = 20, message = "回复内容最多写入20个字,至少写一个字")
    private String content;
    /**
     * 用户token令牌
     */
//    @NotBlank(message = "用户登录信息为空")
    private String token;

}
